package com.retail.admin;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;

/**
 * 零售平台管理后台启动类
 *
 * @author retail
 * @since 2024-01-01
 */
@SpringBootApplication(exclude = {
    org.springframework.boot.autoconfigure.security.servlet.SecurityAutoConfiguration.class
})
@ComponentScan(basePackages = {"com.retail.admin", "com.retail.common", "com.retail.user", "com.retail.product"})
@MapperScan(basePackages = {"com.retail.user.mapper", "com.retail.product.mapper"})
public class RetailAdminApplication {

    public static void main(String[] args) {
        SpringApplication.run(RetailAdminApplication.class, args);
        System.out.println("=================================");
        System.out.println("零售中台系统管理后台启动成功！");
        System.out.println("接口文档地址：http://localhost:8080/doc.html");
        System.out.println("=================================");
    }
}
